﻿package com.company.util {
public class ArrayIterator implements IIterator {

    private var objects_:Array;
    private var index_:int;

    public function ArrayIterator(_arg1:Array) {
        this.objects_ = _arg1;
        this.index_ = 0;
    }

    public function reset():void {
        this.index_ = 0;
    }

    public function next():Object {
        return (this.objects_[this.index_++]);
    }

    public function hasNext():Boolean {
        return ((this.index_ < this.objects_.length));
    }


}
}
